package com.authine.cloudpivot.engine.api.facade;

import io.swagger.v3.oas.annotations.Operation;
import org.springframework.data.domain.Pageable;

import javax.annotation.Nullable;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java.util.List;
import java.util.Map;

/**
 * @ClassName QueryLogsFacade
 * @Description TODO
 * @author fengjie
 * @createTime 2022/4/21 15:27
 * @version 1.0.0
 */
@Path("/api/v1/logs")
public interface QueryLogsFacade extends Versionable {
    @Path("/getCount")
    @GET
    @Operation(summary = "获取总数", method = "GET")
    int getCount(String countSql, @Nullable Map<String, Object> params);

    @Path("/getList")
    @GET
    @Operation(summary = "获取总数", method = "GET")
    List getList(String querySql, @Nullable Pageable pageable, @Nullable Map<String, Object> params);
}
